package com.chenyue.cm.user.domain;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 退货申请表
 * </p>
 *
 * @author Lbx
 * @since 2024-02-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="JdOrderRefundApply对象", description="退货申请表")
public class JdOrderRefundApply extends Model<JdOrderRefundApply> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @ApiModelProperty(value = "订单id")
    private String orderId;

    @ApiModelProperty(value = "退款类型（1-退款，2-退款退货）")
    private String refundType;

    @ApiModelProperty(value = "会员id")
    private String memberId;

    @ApiModelProperty(value = "商品id")
    private String goodsId;

    @ApiModelProperty(value = "商品名称")
    private String goodsName;

    @ApiModelProperty(value = "退款金额")
    private BigDecimal refundMoney;

    @ApiModelProperty(value = "属性详情(快照)")
    private String skuDetail;

    @ApiModelProperty(value = "规格id")
    private String skuId;

    @ApiModelProperty(value = "退货原因")
    private String refundReasonType;

    @ApiModelProperty(value = "退货申请提交的图片附件")
    private String refundPics;

    @ApiModelProperty(value = "受理状态(1-提交申请 2-同意退款   3-退款成功)")
    private Integer state;

    @ApiModelProperty(value = "备注信息")
    private String remark;

    @ApiModelProperty(value = "退货内容")
    private String content;

    @ApiModelProperty(value = "退款时间")
    private String refundTime;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private String ct;

    @ApiModelProperty(value = "创建人")
    private String cb;

    @TableField(fill = FieldFill.UPDATE)
    private String et;

    private String eb;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
